package com.huijutao.beans;

import java.util.ArrayList;

/**
 */
public class Huihui {
    private Hui hui;
    class Hui {
        private ArrayList<HuiData> datas;

        public ArrayList<HuiData> getDatas() {
            return datas;
        }

        public void setDatas(ArrayList<HuiData> datas) {
            this.datas = datas;
        }

        Hui(ArrayList<HuiData> datas) {
            this.datas = datas;
        }

        @Override
        public String toString() {
            return "Hui{" +
                    "datas=" + datas +
                    '}';
        }
    }

    class HuiData {
        public  HuiData(){

        }
        private ItemData data;

        public ItemData getData() {
            return data;
        }

        public void setData(ItemData data) {
            this.data = data;
        }

        HuiData(ItemData data) {
            this.data = data;
        }

        @Override
        public String toString() {
            return "HuiData{" +
                    "data=" + data +
                    '}';
        }
    }

    public class ItemData {
        int id;
        String title;
        String sub_title;
        String type;
        String image_url;
        String price;
        String channel;
        //"categories": ["abroad"],
        String pub_time;
        String end_time;
        int supports_count;
        int oppositions_count;
        int browses_count;
        int comments_count;
        int shares_count;
        int content_id;

        public ItemData() {
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getSub_title() {
            return sub_title;
        }

        public void setSub_title(String sub_title) {
            this.sub_title = sub_title;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getImage_url() {
            return image_url;
        }

        public void setImage_url(String image_url) {
            this.image_url = image_url;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getChannel() {
            return channel;
        }

        public void setChannel(String channel) {
            this.channel = channel;
        }

        public String getPub_time() {
            return pub_time;
        }

        public void setPub_time(String pub_time) {
            this.pub_time = pub_time;
        }

        public String getEnd_time() {
            return end_time;
        }

        public void setEnd_time(String end_time) {
            this.end_time = end_time;
        }

        public int getSupports_count() {
            return supports_count;
        }

        public void setSupports_count(int supports_count) {
            this.supports_count = supports_count;
        }

        public int getOppositions_count() {
            return oppositions_count;
        }

        public void setOppositions_count(int oppositions_count) {
            this.oppositions_count = oppositions_count;
        }

        public int getBrowses_count() {
            return browses_count;
        }

        public void setBrowses_count(int browses_count) {
            this.browses_count = browses_count;
        }

        public int getComments_count() {
            return comments_count;
        }

        public void setComments_count(int comments_count) {
            this.comments_count = comments_count;
        }

        public int getShares_count() {
            return shares_count;
        }

        public void setShares_count(int shares_count) {
            this.shares_count = shares_count;
        }

        public int getContent_id() {
            return content_id;
        }

        public void setContent_id(int content_id) {
            this.content_id = content_id;
        }

        ItemData(int id, String title, String sub_title, String type, String image_url, String price, String channel, String pub_time, String end_time, int supports_count, int oppositions_count, int browses_count, int comments_count, int shares_count, int content_id) {
            this.id = id;
            this.title = title;
            this.sub_title = sub_title;
            this.type = type;
            this.image_url = image_url;
            this.price = price;
            this.channel = channel;
            this.pub_time = pub_time;
            this.end_time = end_time;
            this.supports_count = supports_count;
            this.oppositions_count = oppositions_count;
            this.browses_count = browses_count;
            this.comments_count = comments_count;
            this.shares_count = shares_count;
            this.content_id = content_id;
        }

        @Override
        public String toString() {
            return "ItemData{" +
                    "id=" + id +
                    ", title='" + title + '\'' +
                    ", sub_title='" + sub_title + '\'' +
                    ", type='" + type + '\'' +
                    ", image_url='" + image_url + '\'' +
                    ", price='" + price + '\'' +
                    ", channel='" + channel + '\'' +
                    ", pub_time='" + pub_time + '\'' +
                    ", end_time='" + end_time + '\'' +
                    ", supports_count=" + supports_count +
                    ", oppositions_count=" + oppositions_count +
                    ", browses_count=" + browses_count +
                    ", comments_count=" + comments_count +
                    ", shares_count=" + shares_count +
                    ", content_id=" + content_id +
                    '}';
        }
    }

    public Huihui() {

    }

//    @Override
//    public boolean equals(Object o) {
//        return super.equals(o);
//        if(this.id==){
//
//        }
//    }

    public Huihui(Hui hui) {
        this.hui = hui;
    }

    public Hui getHui() {
        return hui;
    }

    public void setHui(Hui hui) {
        this.hui = hui;
    }

    @Override
    public String toString() {
        return "Huihui{" +
                "hui=" + hui +
                '}';
    }
}
